package vn.net.click.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import vn.net.click.model.ThucUong;

public class ThucUongMapper implements RowMapper<ThucUong>{

	@Override
	public ThucUong mapRow(ResultSet rs, int row) throws SQLException {		
		ThucUong thucUong = new ThucUong();
		thucUong.setThucUongId(rs.getInt("thucuongid"));
		thucUong.setTenThucUong(rs.getString("tenthucuong"));
		thucUong.setDonGia(rs.getInt("dongia"));
		return thucUong;
	}

}
